package com.etc.service.impl;

import com.etc.dao.TypeDao;
import com.etc.entity.Room;
import com.etc.entity.Type;
import com.etc.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (User)表服务实现类
 *
 * @author makejava
 * @since 2021-10-18 21:07:18
 */
@Service
public class TypeServiceImpl implements TypeService {
    
    @Autowired
    TypeDao dao;
    
    
    /**
     * 查询所以类型
     * @return
     */
    @Override
    public List<Type> queryType() {
        return dao.queryType();
    }

    @Override
    public List<Room> queryRoomListById(String typeId) {
        return dao.queryRoomListById(typeId);
    }
}
